﻿namespace FlexPlatform.BusinessLogic.Validation
{
    using System;
    using System.Collections.Generic;

    using FlexPlatform.Shared.Validation;
    
    public class ValidationCompletedArgs : EventArgs
    {
        #region Private fields & Constructor(s)
        
        private IEnumerable<IValidationResult> clsResults;

        /// <summary>
        /// Creates a new instance of <see cref="ValidationCompletedArgs"/>.
        /// </summary>
        /// <param name="results">The validation results.</param>
        internal ValidationCompletedArgs(IEnumerable<IValidationResult> results)
        {
            this.clsResults = results;
        }

        #endregion

        /// <summary>
        /// Gets the validation results.
        /// </summary>
        public IEnumerable<IValidationResult> Results
        {
            get
            {
                return clsResults;
            }
        }
    }
}
